<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
  <!--v_model="变量" 让控件的value值和变量进行双向绑定-->
  <input type="text"   v-model="info">
  {{info}}
  <h1>注册表单</h1>
  <form action="">
    用户名: <input type="text" v-model="user.username"><br>
    密码: <input type="password" v-model="user.password"><br>
  </form>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
  let v=new Vue({
    el:"div",
    data:{
      info:"双向绑定",
      user: {
        username:"",
        password:""
     }
    }
  })
</script>

</body>
</html>